<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            text-align: center;
            background-color: chartreuse;
        }
        .text{
            margin: 20px;
            background-color: red;
        }

        .input{
            height: 40px;
            margin: 20px;
        }

        .inline-block{
            display: inline-block;
        }

        .float{
            float: left;
        }
    </style>
</head>
<body>
    
    <div class="box">
        <a class="text">不可替换内联元素</a>
        <input class="input" value="可替换内联元素" />
        <div class="inline-block">inline-block</div>
        <div class="float">浮动的元素会压缩</div>
    </div>
</body>
</html>